
$(function() {

	var hiddenOrderId = $("#orderId").val();
	if(hiddenOrderId==""){
		$("#content2").css('display','none'); 
	}else{
		$("#content2").css('display','block'); 
	}
	

	
	$(".setTaskInfoInit").click(function() {
		var orderId=$(this).next().val();
		document.forms[0].action = appPath+"/webtask/setTaskInfoInit.action?orderId=" + orderId;
		document.forms[0].submit();
		return false;
	});
	
	
	$(".resourceTypeImg").click(function() {
		var resourceTypeId=$(this).next().val();
		var areaId = $("#areaId").val();
		//alert(areaId);
		var orderId=$("#orderId").val();
		document.forms[0].action = appPath+"/websearch/searchManagerInit.action?resourceTypeId=" + resourceTypeId+"&orderId="+orderId+"&areaId="+areaId;
		document.forms[0].submit();
		return false;
	});
	
	$("#addSchedule").click(function() {
		var orderId=$("#orderId").val();
		document.forms[0].action = appPath+"/webtask/eventManagerInit.action?orderId=" + orderId;;
		document.forms[0].submit();
		return false;
	});
	
	
	$("#saveTaskBt").click(function() {
	document.forms[0].action = appPath+"/webtask/saveTaskInfo.action";
	document.forms[0].submit();
	return false;
		});
	
	$("#returnBt").click(function() {
		document.forms[0].action = appPath+"/webgoods/homePageInit.action";
		document.forms[0].submit();
		return false;
			});
	
});